﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ATSBLL;

public partial class PIMTest_PIMTestStatistic : System.Web.UI.Page
{

    private PIMTest Ptest;

    public PIMTest_PIMTestStatistic()
    {
        Ptest = new PIMTest();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void BindTest_Q()
    {
        if (!string.IsNullOrEmpty(tbStart.Value.ToString()) && !string.IsNullOrEmpty(tbEnd.Value.ToString()))
        {
            DateTime dtStart = DateTime.Parse(tbStart.Value.Trim());
            DateTime dtEnd = DateTime.Parse(tbEnd.Value.Trim());
            GridView1.DataSource = Ptest.GetTest_QbyDT(dtStart, dtEnd);
            GridView1.DataBind();
        }
       
    }

    protected void butSelect_Click(object sender, EventArgs e)
    {
        BindTest_Q();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        BindTest_Q();
    }
}
